<form id="sForm">
	<input type="hidden" name="frm" value="{$_act.frm}" />
	<input type="hidden" name="mdl" value="{$_act.mdl}" />
	<input type="hidden" name="do" value="{$_act.do}" />
	
	<input type="hidden" name="_filter" value="{$get._filter}" />
	<input type="hidden" name="_single" value="{$get._single}" />

	<input type="hidden" name="catid" id="catid" value="{$catid}" />
	<table border="0" align="center" cellpadding="0" cellspacing="1" class="table_search">
		<tbody>
			<tr>
				<th>{$l.category}：</th>
				<td><ul id="ui_menu">
						<li><a href="#" id="category_name">{$category_name} </a>
							<ul>
								{$category_tree}
							</ul>
						</li>
					</ul></td>
				<th>{$l.keyword}：</th>
				<td><input type="text" name="keyword" value="{$get.keyword}" class="input" style="width:360px;" /></td>
				<td class="w100p"></td>
				<td><input type="submit" name="btnSearch" value="{$l.search}" class="button" /></td>
				<td><input type="submit" name="btnExport" value="导出" class="button" /></td>
			</tr>
		</tbody>
	</table>

	<br />
	<div class="form_data_cut">
		<div class="right">
			<!-- 操作链接 START -->
			<a href="./m.php?frm=news&mdl=news&do=edit" target="eBody">添加</a>
			<!-- 操作链接 END -->
			<div class="clear"></div>
		</div>
		<!-- 排序字段 START -->
		{include file="_major_sort.lbi"}
		<!-- 排序字段 END -->
		<div class="clear"></div>
	</div>
</form>

<div class="space10"><!-- 间隔 --></div>
<form action="./m.php?frm=action&mdl=index" name="lForm" id="lForm" method="post" target="eBody">
	<input type="hidden" name="formAction" value="" />
	<input type="hidden" name="goback" value="frlist" />
	<input type="submit" id="btnSubmit" class="hide" />
	<table align="center" class="data_form">
		<caption>
		{$_page.caption}
		</caption>
		<thead>
			<tr>
				<th style="width:22px;">{if $_single != 'yes'}<input type="checkbox" title="{$l.selall}/{$l.selnone}" class="poshytip" />{/if}</th>
				<th style="width:32px;">ID</th>
				<th style="width:240px;">{$l.title}</th>
				<th style="width:80px;">{$l.file}{$l.name}</th>
				<th style="width:80px;">{$l.category}</th>
				<th>{$l.summary}</th>
				<th style="width:64px;">{$l.rank}</th>
				<th style="width:50px;">{$l.hits}</th>
				<th style="width:150px;">{$l.time}</th>
				<th style="width:30px;">{$l.operation}</th>
			</tr>
		</thead>
		<tbody>
		
		{foreach from=$list item=row}
		<tr>
			<th>{if $_single == 'yes'}
				<input type="radio" name="list[]" value="{$row.id}" />
				{else}
				<input type="checkbox" name="list[]" value="{$row.id}" /><input type="hidden" name="lst[{$row.id}]" value="{$row.id}" />
				{/if}</th>
			<td><a href="{$row.url}" class="open_frame">{$row.id}</a></td>
			<td rel="title"><a href="{$row.url}" class="open_frame"><span class="{$row.style}">{$row.title}</span></a></td>
			<td> {$row.filename} </td>
			<td><a href="./m.php?frm=news&mdl=newscat&do=edit&id={$row.catid}"> {$row.category_name} </a></td>
			<td class="break"> {$row.summary} </td>
			<td><input type="text" name="rank[{$row.id}]" value="{$row.rank}" class="input" style="width:48px;" /></td>
			<td>{$row.hits}</td>
			<td>{$row.addtime} <br />
				{$row.updatetime}</td>
			<td><a href="./m.php?frm=news&mdl=news&do=edit&id={$row.id}" target="eBody">{$l.edit}</a></td>
		</tr>
		{/foreach}
		</tbody>
		
	</table>

</form>
	<!--  -->
	<table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<tfoot id="cmd">
			<tr>
				<td><div class="btns"><!--<select class="select"><option></option>-->
						{if $_filter == 'yes'}
						<button id="_btnTransmit" class="button">返回选择数据</button>
						{else}
							<!--{if $_g._mp_news_news_del}-->
							<button name="formAction" value="{$_act.frm}.news_del" class="button">{$l.del}</button>
							<!--{/if}-->
							<!--{if $_g._mp_news_news_rank}-->
							<button name="formAction" value="{$_act.frm}.news_rank" class="button">{$l._mp_news_news_rank}</button>
							<!--{/if}-->
						{/if}
						<!--</select>-->
					</div>
					{include file="./_pagelist.tpl"}</td>
			</tr>
		</tfoot>
	</table>
	

<div class="space5"><!-- 间隔 --></div>
<div class="data_memo"></div>

<script type="text/javascript" language="JavaScript" charset="utf-8">
<!--
	{literal}
	jQuery(function($){
		$('#ui_menu').menu();
		$('#_btnTransmit').click(_transmit);
		
	});

	function _transmit(){	// 将选择的数据返回给上一层
		var news_arr = [];
		$('.data_form tbody tr th input[name="list[]"]:checked').each(function(index, domEle){
			news_arr.push({
				'id'	: $(this).val()
				,'title'	: $(this).parents('th').siblings('td[rel="title"]').find('a').text()
			});
		});
		if(news_arr.length == 0){
			showmsg_warning('您还未钩选新闻');
			return false;
		}
		try{
			window.parent._receive_news(news_arr);
			myconfirm('新闻已成功传递给上层页面^_^<br />现在关闭本弹出窗口？', {
				type	: 'right'
				,submit	: function(e, v, m, f){
					if(v == true){
						window.parent.close_div();
					}
				}
			});
		}catch(e){}
	}

	function set_category_id(obj, pid){
		$('#catid').val(pid);
		$('#category_name').html('<span class="ui-menu-icon ui-icon ui-icon-carat-1-e"></span>'+$(obj).text());
	}
	
	{/literal}
-->
</script>